翻訳と辞書
Words near each other
・ Lochy River
・ Loché-sur-Indrois
・ Loci (band)
・ Loci Communes
・ Loci Controls
・ Loci Theologici
・ Lociki
・ Lock
・ Lock & Key
・ Lock & Lock
・ Lock 'n Load (album)
・ Lock 'N Load (reality show)
・ Lock 'n Load (tabletop game)
・ Lock 'n' Chase
・ Lock (computer science)
Lock (database)
・ Lock (firearm)
・ Lock (security device)
・ Lock (surname)
・ Lock (Waltz)
・ Lock (water transport)
・ Lock 18 of Enlarged Erie Canal
・ Lock 3
・ Lock All the Doors
・ Lock and Dam No. 1
・ Lock and Dam No. 10
・ Lock and Dam No. 11
・ Lock and Dam No. 12
・ Lock and Dam No. 13
・ Lock and Dam No. 14


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Lock (database) : ウィキペディア英語版
Lock (database)

A lock, as a read lock or write lock, is used when multiple users need to access a database concurrently. This prevents data from being corrupted or invalidated when multiple users try to read while others write to the database. Any single user can only modify those database records (that is, items in the database) to which they have applied a lock that gives them exclusive access to the record until the lock is released. Locking not only provides exclusivity to writes but also prevents (or controls) reading of unfinished modifications (AKA uncommitted data).
A read lock can be used to prevent other users from reading a record (or page) which is being updated, so that others will not act upon soon-to-be-outdated information.
== Mechanisms for locking ==
There are two mechanisms for locking data in a database: ''pessimistic locking'', and ''optimistic locking''. In pessimistic locking a record or page is locked immediately when the lock is requested, while in an optimistic lock the record or page is only locked when the changes made to that record are updated. The latter situation is only appropriate when there is less chance of someone needing to access the record while it is locked; otherwise it cannot be certain that the update will succeed because the attempt to update the record will fail if another user updates the record first. With pessimistic locking it is guaranteed that the record will be updated.
The degree of locking can be controlled by isolation level. Change of a lock is called lock conversion and the lock may be upgraded (lock upgrade) or downgraded (lock downgrade).

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Lock (database)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.